package soft2;
import java.util.Scanner;
public class UsersTest {
    public static void main(String[] args) {
        Users users=new Users();
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入你的用户名");
        String userName=scanner.next();
        System.out.println("请输入你的密码");
        String password=scanner.next();

        users.username="nmaa112";
        users.password="123456";
        boolean res =users.login(userName,password);
        if (res){
            System.out.println("登录成功，欢迎你"+userName);
        }else {
            System.out.println("登录失败，用户名或者密码错误");
        }
    }
}
